package org.opens.netty.chatServer.server.session;

import org.opens.netty.chatServer.server.session.impl.SessionMemoryImpl;

public class SessionFactory {

    private static Session session;

    public static Session getSession() {
        if (session == null) {
            synchronized (SessionFactory.class) {
                session = new SessionMemoryImpl();
            }
        }
        return session;
    }

}
